﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WenDangOne.DbModel.BaseInfoManager;
using WenDangOne.DbModel.BaseInfoManagerDal;

namespace LianChuDemo.SqlServerDal
{
    public class SystemCenterDbContext: DbContext
    {
        /// <summary>
        /// 把 options通过base() 传给父类的构造函数，base这里表示是父类方法，就上面的DbContext
        /// </summary>
        /// <param name="options"></param>
        public SystemCenterDbContext(DbContextOptions<SystemCenterDbContext> options):base(options)
        { 

        }
        //连接入model
        public DbSet<ModuleDb> ModuleDb { get; set; }
        public DbSet<RoleDb> RoleDb { get; set; }
        public DbSet<RoleModuleRelation> RoleModuleRelation { get; set; }
        public DbSet<AdminUser> AdminUser { get; set; }
        public DbSet<AdminUserRoleRelation> AdminUserRoleRelation { get; set; }
        public DbSet<WebSystemMenu> WebSystemMenu { get; set; }
    }
}
